# 5.1田字格
def hengxian(value):
    print('+------------' * 4, '+') if value else print('|            ' * 4, '|')


for i in range(21):
    hengxian(True) if i % 5 == 0 else hengxian(False)